﻿using PoliticalClassifier.Support;

namespace PoliticalClassifier.DataSource
{
    /// <summary>
    /// Provides an internal implementation of a "data source contains no weight columns" error.
    /// </summary>
    internal class DataSourceNoWeightColumnsError : DataSourceErrorBase
    {
        #region Construction
        /// <summary>
        /// Constructs a default "no weight columns" error.
        /// </summary>
        public DataSourceNoWeightColumnsError()
            : base(DataSourceLoadErrorType.NoWeightColumns)
        {
        }
        #endregion

        #region Public Methods
        /// <summary>
        /// Gets a human readable error message.
        /// </summary>
        /// <returns>A human readable error message.</returns>
        public override string GetErrorMessage()
        {
            return Resources.NoWeightColumnsErrorMessage;
        }
        #endregion
    }
}
